Optimal. Leaf size=43 \[ x \sqrt {b-\frac {a}{x^2}}+\sqrt {a} \tan ^{-1}\left (\frac {\sqrt {a}}{x \sqrt {b-\frac {a}{x^2}}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.294, Rules used = {1972, 242, 277, 217, 203} \[ x \sqrt {b-\frac {a}{x^2}}+\sqrt {a} \tan ^{-1}\left (\frac {\sqrt {a}}{x \sqrt {b-\frac {a}{x^2}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 217
Rule 242
Rule 277
Rule 1972
Rubi steps
\begin {align*} \int \sqrt {\frac {-a+b x^2}{x^2}} \, dx &=\int \sqrt {b-\frac {a}{x^2}} \, dx\\ &=-\operatorname {Subst}\left (\int \frac {\sqrt {b-a x^2}}{x^2} \, dx,x,\frac {1}{x}\right )\\ &=\sqrt {b-\frac {a}{x^2}} x+a \operatorname {Subst}\left (\int \frac {1}{\sqrt {b-a x^2}} \, dx,x,\frac {1}{x}\right )\\ &=\sqrt {b-\frac {a}{x^2}} x+a \operatorname {Subst}\left (\int \frac {1}{1+a x^2} \, dx,x,\frac {1}{\sqrt {b-\frac {a}{x^2}} x}\right )\\ &=\sqrt {b-\frac {a}{x^2}} x+\sqrt {a} \tan ^{-1}\left (\frac {\sqrt {a}}{\sqrt {b-\frac {a}{x^2}} x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 68, normalized size = 1.58 \[ x \sqrt {b-\frac {a}{x^2}}-\frac {\sqrt {a} x \sqrt {b-\frac {a}{x^2}} \tan ^{-1}\left (\frac {\sqrt {b x^2-a}}{\sqrt {a}}\right )}{\sqrt {b x^2-a}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 118, normalized size = 2.74 \[ \left [x \sqrt {\frac {b x^{2} - a}{x^{2}}} + \frac {1}{2} \, \sqrt {-a} \log \left (-\frac {b x^{2} - 2 \, \sqrt {-a} x \sqrt {\frac {b x^{2} - a}{x^{2}}} - 2 \, a}{x^{2}}\right ), x \sqrt {\frac {b x^{2} - a}{x^{2}}} + \sqrt {a} \arctan \left (\frac {\sqrt {a} x \sqrt {\frac {b x^{2} - a}{x^{2}}}}{b x^{2} - a}\right )\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 63, normalized size = 1.47 \[ -\sqrt {a} \arctan \left (\frac {\sqrt {b x^{2} - a}}{\sqrt {a}}\right ) \mathrm {sgn}\relax (x) + {\left (\sqrt {a} \arctan \left (\frac {\sqrt {-a}}{\sqrt {a}}\right ) - \sqrt {-a}\right )} \mathrm {sgn}\relax (x) + \sqrt {b x^{2} - a} \mathrm {sgn}\relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.09, size = 81, normalized size = 1.88 \[ \frac {\sqrt {\frac {b \,x^{2}-a}{x^{2}}}\, \left (a \ln \left (\frac {-2 a +2 \sqrt {-a}\, \sqrt {b \,x^{2}-a}}{x}\right )+\sqrt {-a}\, \sqrt {b \,x^{2}-a}\right ) x}{\sqrt {-a}\, \sqrt {b \,x^{2}-a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.99, size = 34, normalized size = 0.79 \[ \sqrt {b - \frac {a}{x^{2}}} x - \sqrt {a} \arctan \left (\frac {\sqrt {b - \frac {a}{x^{2}}} x}{\sqrt {a}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.38, size = 54, normalized size = 1.26 \[ x\,\sqrt {b-\frac {a}{x^2}}+\frac {\sqrt {a}\,\mathrm {asin}\left (\frac {\sqrt {a}}{\sqrt {b}\,x}\right )\,\sqrt {b-\frac {a}{x^2}}}{\sqrt {b}\,\sqrt {1-\frac {a}{b\,x^2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {\frac {- a + b x^{2}}{x^{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________